package org.grayrabbit.cms.publish.generate.factory;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import org.grayrabbit.cms.entity.Admin;


public abstract class AbstractFactory {
	public static int taskNum = 0;
	/**任务进度情况*/
	public static Map<String,Integer> percent = Collections.synchronizedMap(new HashMap<String,Integer>());
	/**任务唯一的KEY与主键进行的关联*/
	public static Map<String,String> PUBLISHMAP = Collections.synchronizedMap(new HashMap<String,String>());
	/**任务的运行状态*/
	public static Map<String,Boolean> PUBLISHSTATUS = Collections.synchronizedMap(new HashMap<String,Boolean>());
	/**已完成的任务数KEY后缀*/
	public static final String FINISHED = "FINISHED";
	/**已完成的失败任务数KEY后缀*/
	public static final String FAIL = "FAIL";
	/**任务总数的KEY后缀*/
	public static final String TOTAL = "TOTAL";
	/**任务执行的结束时间*/
	public static final String TIME = "TIME";
	/**发布产成的公共锁*/
	public static final Object LOCK = new Object();
	public static Map<String,Admin> admin;
	public abstract GeneraterFactory getGeneraterFactory() throws Exception;
}
